package com.gdsdxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdsdxy.dto.AlbumFromDTO;
import com.gdsdxy.dto.ResultVo;
import com.gdsdxy.entity.Album;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IAlbumService extends IService<Album> {
    /**
     * 增加相册
     * @param albumFromDTO 相册信息
     * @return ResultVo
     */
    ResultVo saveAlbum(AlbumFromDTO albumFromDTO);

    /**
     * 删除相册
     * @param id 相册id
     * @return ResultVo
     */
    ResultVo deleteAlbum(Long id);

    /**
     * 查找相册
     * @param id 查找id
     * @return ResultVo
     */
    ResultVo queryAlbum(Long id);

}
